<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%String path=request.getContextPath();String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath%>">
	<title><s:text name="sys.app_title" /></title>
	<%@include file="../include/contentheader.jsp"%>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
	<link rel="stylesheet" type="text/css" href="css/main.css"/>
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="js/app.js"></script>
	<script type="text/javascript">
	function doBack(){
		location.href="tmplt-list.action?FN=<s:property value='FN' />";
	}
	</script>
</head> 
<body>
<form action="tmplt-setAuth.action" method="post">
<div class="mainContainer">
	<div class="headerTitle"><s:property value="navStr" /></div>
	<div class="dataDivLeftNoTree">

<table class="formTable" border="0" cellspacing="0" cellpadding="0">
	<tr class="operatorAction">
		<td>
			<!-- 功能性操作 -->
			<input type="submit" value="提交" />
		    <input type="button" onclick="doBack();" value="返回" />
		</td>
	</tr>
    <tr>
		<td class="formData">
			<div class="scrollY">
			<table class="dataTable" border="0" cellpadding="0" cellspacing="1">
			
			<tr class="dataRow">
				<td></td>
				<s:iterator var="r" value="accessRightData" status="rst">
					<td>${r.desc }</td>
				</s:iterator>
			</tr>
			<s:iterator var="f" value="sysFuncData" status="fst">
				<tr class="dataRow">
					<td width="150px"><b>${f.funcName}：</b></td>
					<s:iterator var="r" value="accessRightData" status="rst"><td>
						<input type="checkbox" id="${fst.index }_${rst.index }" name="${f.subModuleId}${f.funcCode}${r.value}" value="1" <s:if test="tmpltAuthMap[#f.funcCode].indexOf(#r.value)!=-1">checked="checked"</s:if> <s:if test="#f.accessRight.indexOf(#r.value)==-1">disabled="disabled"</s:if> />
					</td></s:iterator>
				</tr>
			</s:iterator>
			
			</table>
			
			<input type="hidden" name="FN" value="<s:property value='FN' />" />
			<input type="hidden" name="t" value="<s:property value='t' />" />
			<input type="hidden" name="opt" value="<s:property value='opt' />" />
			</div>
		</td>
	</tr>
</table>

	</div>
</div>
</form>
</body>  
</html>